/**
 * 
 */
package hu.gbalage.directories;

import hu.gbalage.directories.jdo.JDORootDir;

import java.util.ArrayList;
import java.util.List;

/**
 * @author balage
 *
 */
public class DirectoryManager implements IDirectory{

	private static DirectoryManager root = new DirectoryManager();
	
	public static IDirectory getRoot(){
		return root;
	}

	@Override
	public List<IEntry> getChildren() {
		ArrayList<IEntry> ch = new ArrayList<IEntry>();
		ch.add(new JDORootDir());
		return ch;
	}

	@Override
	public String getName() {
		return "";
	}

	@Override
	public IDirectory getParent() {
		return null;
	}

	@Override
	public boolean isDirectory() {
		return true;
	}

	@Override
	public boolean isFile() {
		return false;
	}
	
	@Override
	public boolean put(IEntry entry) {
		return false;
	}
	
}
